package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.rankunionwar.config.RankUnionWarDivisionConfig;
import com.yanqu.road.entity.activity.rankunionwar.config.RankUnionWarFloorConfig;
import com.yanqu.road.entity.activity.rankunionwar.config.RankUnionWarTimeConfig;
import com.yanqu.road.entity.activity.rankunionwar.data.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class RankUnionWarBusiness {

    /*配置*/
    public static Map<Integer, RankUnionWarTimeConfig> getTimeConfigMap(int activityId) {
        return DaoHelper.getRankUnionWarConfigDaoImpl().getTimeConfigMap(activityId);
    }
    public static Map<Integer, RankUnionWarDivisionConfig> getDivisionConfigMap(int activityId) {
        return DaoHelper.getRankUnionWarConfigDaoImpl().getDivisionConfigMap(activityId);
    }
    public static Map<Integer, RankUnionWarFloorConfig> getFloorConfigMap(int activityId) {
        return DaoHelper.getRankUnionWarConfigDaoImpl().getFloorConfigMap(activityId);
    }


    /*数据*/
    public static CrossRankUnionWarData getCrossRankUnionWarData(int activityId) {
        return DaoHelper.getCrossRankUnionWarDataDaoImpl().getData(activityId);
    }
    public static boolean addCrossRankUnionWarData(CrossRankUnionWarData data) {
        return DaoHelper.getCrossRankUnionWarDataDaoImpl().add(data);
    }
    public static boolean updateCrossRankUnionWarData(CrossRankUnionWarData data) {
        return DaoHelper.getCrossRankUnionWarDataDaoImpl().update(data);
    }

    public static Map<String, CrossRankUnionWarUnionData> getCrossRankUnionWarUnionData(int activityId) {
        return DaoHelper.getCrossRankUnionWarUnionDataDaoImpl().getData(activityId);
    }

    public static boolean addCrossRankUnionWarUnionData(CrossRankUnionWarUnionData data) {
        return DaoHelper.getCrossRankUnionWarUnionDataDaoImpl().add(data);
    }
    public static boolean updateCrossRankUnionUnionWarData(CrossRankUnionWarUnionData data) {
        return DaoHelper.getCrossRankUnionWarUnionDataDaoImpl().update(data);
    }

    public static int getCrossRankUnionWarMaxGameNo(int activityId){
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getMaxGameNo(activityId);
    }

    public static int getCrossRankUnionWarMaxPatronsNo(int activityId){
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getMaxPatronsNo(activityId);
    }

    public static long getCrossRankUnionWarBarrageNo(int activityId){
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getMaxBarrageNo(activityId);
    }

    public static RankUnionWarUserData getUserData(long userId, int activityId) {
        return DaoHelper.getRankUnionWarUserDataDaoImpl().getUserData(activityId, userId);
    }

    public static boolean addUserData(RankUnionWarUserData userData) {
        return DaoHelper.getRankUnionWarUserDataDaoImpl().add(userData);
    }

    public static boolean updateUserData(RankUnionWarUserData userData) {
        return DaoHelper.getRankUnionWarUserDataDaoImpl().update(userData);
    }

    public static List<CrossRankUnionWarMatchData> getMatchList(int activityId) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getMatchList(activityId);
    }

    public static boolean addMatchList(List<CrossRankUnionWarMatchData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addMatchList(list);
    }

    public static boolean updateMatchList(List<CrossRankUnionWarMatchData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().updateMatchList(list);
    }


    public static List<CrossRankUnionWarLineData> getMatchLineList(int activityId,int gameNo) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getMatchLineList(activityId,gameNo);
    }


    public static boolean addLineList(List<CrossRankUnionWarLineData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addLineList(list);
    }

    public static boolean updateLineList(List<CrossRankUnionWarLineData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().updateMatchLineList(list);
    }


    public static List<CrossRankUnionWarWaitPatronData> getWaitPatronsList(int activityId,int gameNo) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getWaitPatronsList(activityId,gameNo);
    }

    public static boolean addWaitPatronsList(List<CrossRankUnionWarWaitPatronData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addWaitPatronsList(list);
    }

    public static boolean updateWaitPatronsList(List<CrossRankUnionWarWaitPatronData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().updateWaitPatronsList(list);
    }

    public static boolean delWaitPatronsList(List<CrossRankUnionWarWaitPatronData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().delWaitPatronsList(list);
    }

    public static List<CrossRankUnionWarBattlePatronData> getBattlePatronsList(int activityId,int gameNo) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getBattlePatronsList(activityId,gameNo);
    }

    public static boolean addBattlePatronsList(List<CrossRankUnionWarBattlePatronData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addBattlePatronsList(list);
    }

    public static boolean updateBattlePatronsList(List<CrossRankUnionWarBattlePatronData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().updateBattlePatronsList(list);
    }


    public static List<CrossRankUnionWarGambleData> getGambleList(int activityId) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getGambleList(activityId);
    }

    public static boolean addGambleList(List<CrossRankUnionWarGambleData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addGambleList(list);
    }

    public static boolean updateGambleList(List<CrossRankUnionWarGambleData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().updateGambleList(list);
    }


    public static Map<Long,CrossRankUnionWarUserLockData> getUserLockList(int activityId) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().getUserLockList(activityId);
    }

    public static boolean addUserLockList(List<CrossRankUnionWarUserLockData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addUserLockList(list);
    }

    public static boolean updateUserLockList(List<CrossRankUnionWarUserLockData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().updateUserLockList(list);
    }

    public static boolean addBarrageList(List<CrossRankUnionWarBarrageData> list) {
        return DaoHelper.getCrossRankUnionWarMatchDataDaoImpl().addBarrageList(list);
    }

}
